﻿#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir D:\starcraft\BWAPI 3.7.4\Chaoslauncher  ; Ensures a consistent starting directory.

^r::
FileDelete, D:\starcraft\BroodWar\bwapi-data\AI\AmorphiS.dll
FileDelete, D:\starcraft\BroodWar\bwapi-data\AI\AmorphiS2.dll
FileCopy, D:\starcraft\BWAPI 3.7.4\amorphis-bwapi-player\Release\AmorphiS.dll, D:\starcraft\BroodWar\bwapi-data\AI\
FileCopy, D:\starcraft\BWAPI 3.7.4\amorphis-bwapi-player\Release\AmorphiS.dll, D:\starcraft\BroodWar\bwapi-data\AI\AmorphiS2.dll

Run D:\starcraft\BWAPI 3.7.4\Chaoslauncher\Chaoslauncher-MultiInstance.exe
Sleep, 500
click 59, 360
sleep 3000
send g

Run D:\starcraft\BWAPI 3.7.4\Chaoslauncher\Chaoslauncher-MultiInstance.exe
Sleep, 500
click 59, 360
return

^e::
send {F10}
sleep 200
send e
sleep 200
send x
sleep 200
send x
return

^w::
WinActivate, Brood War
send {F10}
sleep 200
send e
sleep 200
send q
sleep 200
send q
sleep 1000
FileDelete, D:\starcraft\BroodWar\bwapi-data\AI\ExampleAIModule.dll
FileCopy, D:\starcraft\BWAPI 3.7.4\BroodWarAI\Release\ExampleAIModule.dll, D:\starcraft\BroodWar\bwapi-data\AI\
send u
sleep 300
send o
sleep 700
send s
return

^q::
WinActivate, Brood War
send {F10}
sleep 200
WinActivate, ExampleAIModule - Visual C++ 2008 Express Edition
return